package com.qsw.paper.pojo.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.Pattern;

@Data
public class UserUpdateDto {
    private Integer userId;
    @Email
    private String email;
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确，必须是以1开头的11位数字")
    private String phone;
    @URL
    private String avatar;
}
